﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="rank_edit.aspx.cs" Inherits="He.Web.manage.member.rank_edit" %>
<%@ Register Src="../_uc/head_edit.ascx" TagPrefix="uc" TagName="head_edit" %>
<%@ Register Src="../_uc/head.ascx" TagPrefix="uc" TagName="head" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>编辑会员等级</title>
<uc:head runat="server" ID="uchead" />
<uc:head_edit runat="server" ID="uchead_edit" />
<script type="text/javascript">
    $(function () {
        var cbFunc = '<%=this.strFunc %>';
        $("input[name='cbFunc']").each(function () {
            var cllarr = "," + $(this).attr("value") + ",";
            if (cbFunc.indexOf(cllarr) != -1) {
                $(this).attr("checked", true);
            }
        });
    })
</script>
</head>
<body>
<form id="form1" runat="server">
  <div class="navigation"> <span class="back"><a href="rank_list.aspx">返回管理列表</a></span> <b>您当前的位置：首页 &gt; 互动模块 &gt;
    编辑会员等级</b> </div>
  <div class="spClear"> </div>
  <table width="100%" border="0" cellspacing="0" cellpadding="0" class="msgtable">
    <tr>
      <th colspan="2" align="left"> 编辑会员等级 </th>
    </tr>
    <tr>
      <td align="right"> 等级名称： </td>
      <td><asp:TextBox ID="txtTitle" runat="server" CssClass="input w250 required" MaxLength="250"
                    HintTitle="等级名称" HintInfo="等级名称。"></asp:TextBox>
      </td>
    </tr>
    <tr>
      <td align="right"> 备注： </td>
      <td><asp:TextBox ID="txtRemark" runat="server" CssClass="textarea wh250" MaxLength="100"
                    HintTitle="备注" HintInfo="备注。" TextMode="MultiLine"></asp:TextBox>
      </td>
    </tr>
     <tr>
      <td align="right" valign="top"> 功能控制： </td>
      <td><%
            He.BLL.channel sbll = new He.BLL.channel();
            System.Collections.Generic.List<He.Model.channel> slist = sbll.GetModelList("is_lock=0 and lang='" + lang + "'");
            foreach (He.Model.channel smodel in slist)
            {
        %>
        <input name="cbFunc" type="checkbox" value="<%=smodel.id %>" /><%=smodel.title %>
        <%} %>
        </td>
    </tr>
  </table>
  <div style="margin-top: 10px; text-align: center;">
    <asp:Button ID="btnSave" runat="server" Text="确认保存" CssClass="submit" OnClick="btnSave_Click" />
  </div>
</form>
</body>
</html>
